<template>
    <a-select size="small" style="width: 100%" v-model="item[text]" @change="dataSourChange">
        <a-select-option v-for="(itm, index) in list" :key="itm.DataFieldID" :channel="itm">
            {{ itm.DataFieldName }}
        </a-select-option>
    </a-select>
</template>
<script>
export default {
    props: ['item', 'text', 'index', "dflag", 'list'],
    data() {
        return {

        }
    },
    mounted() {

    },
    computed: {
    },
    methods: {
        /* 选中的数据源 */
        dataSourChange(value, option) {
            this.item.DataFieldID=value;
            this.item.DataFieldName = option.data.attrs.channel.DataFieldName
        },
    },
}
</script>
<style scoped></style>
